#include "Primitive.hh"

namespace Primitive
{
  void Rectangle::initialize(void)
  {
  }

  void Rectangle::update(gdl::GameClock const & gameClock, gdl::Input & input)
  {
  }

  void Rectangle::draw(void)
  {
    glBegin(GL_QUADS);

    glColor3f(1.0f, 0.50f, 0.75f);

    /// Vertex superieur gauche
    glVertex3f(-150.0f, 100.0f, 0.0f);
    /// Vertex inferieur gauche
    glVertex3f(-150.0f, -100.0f, 0.0f);
    /// Vertex inferieur droit
    glVertex3f(150.0f, -100.0f, 0.0f);
    /// Vertex superieur droit
    glVertex3f(150.0f, 100.0f, 0.0f);

    glEnd();
  }
}
